const gridDefaultColumns = {
  info: [
    {
      name: "",
      code: "",
      maxWidth: 30,
      width: 30,
      editable:false,
      pinned:'left',
      cellStyle: {
        "text-align": "center",
      },
      rowDrag:true,
    },
    {
      name: "home1.code",
      filter: false,
      minWidth: 100,
      width: 100,
      code: "code",
      cellEditor: "InputEditor",
      editable:true
    },
    {
      name: "home1.name",
      filter: false,
      minWidth: 100,
      width: 100,
      code: "name",
      cellEditor: "InputEditor",
      editable:true
    },
    {
      name: "home1.issearch",
      filter: false,
      minWidth: 100,
      width: 100,
      code: "issearch",
      editable:true,
      cellEditor: "SelectEditor",
      cellEditorParams:{
        list:[
          {label:"code.selectType",value:"0"},
          {label:"code.selectType1",value:"1"},
          {label:"code.selectType2",value:"2"},
          {label:"code.selectType3",value:"3"},
          {label:"code.selectType4",value:"4"},
          {label:"code.selectType5",value:"5"},
        ]
      },
    },
    {
      name: "home1.searchData",
      filter: false,
      minWidth: 100,
      width: 100,
      code: "searchData",
      editable:true,
      cellEditor: "InputEditor",
    },
    {
      name: "home1.type",
      filter: false,
      minWidth: 100,
      width: 100,
      code: "type",
      editable:true,
      cellEditor: "SelectEditor",
      cellEditorParams:{
        list:[
          {label:"string",value:"10402"},
          {label:"number",value:"10401"},
          {label:"datetime",value:"10403"}
        ],
      },
    },
    {
      name: "home1.width",
      filter: false,
      minWidth: 100,
      width: 100,
      editable:true,
      code: "width",
      cellEditor: "InputEditor",
    },
    {
      name: "transmit.action",
      field: "action",
      minWidth: 60,
      width: 100,
      editable: false,
      cellRenderer: "ActionRender",
      cellClass: "tms-cell-action",
      headerClass: "tms-no-children-header",
    }
  ],
  sort: [
    {
      name: "",
      code: "",
      maxWidth: 30,
      width: 30,
      pinned: "left",
      cellStyle: {
        "text-align": "center",
      },
      // cellClass:"el-icon-rank",
      editable:false,
      rowDrag:true,
    },
    {
      name: "home1.code",
      filter: false,
      minWidth: 100,
      width: 100,
      cellEditor: "InputEditor",
      editable:true,
      code: "column_code",
    },

    {
      name: "home1.menu_list_name",
      filter: false,
      minWidth: 100,
      width: 100,
      cellEditor: "InputEditor",
      editable:true,
      code: "menu_list_name",
    },
    {
      name: "home1.sort_type",
      filter: false,
      editable: true,
      minWidth: 100,
      width: 100,
      code: "sort_type",
      cellEditor: "SelectEditor",
      cellEditorParams:{
        list:[
          {label:"code.sortType1",value:"10201"},
          {label:"code.sortType2",value:"10202"}
        ]
      }
    },
    {
      name: "transmit.action",
      field: "action",
      minWidth: 60,
      width: 100,
      editable: false,
      cellRenderer: "ActionRender",
      cellClass: "tms-cell-action",
      headerClass: "tms-no-children-header",
    }
  ],
  tableConfigList: [
    {
      name: "",
      code: "selection",
      checkboxSelection: true,
      headerCheckboxSelection: true,
      headerCheckboxSelectionFilteredOnly: true,
      width: 30,
      maxWidth:30,
      pinned:'left'
    },
    {
      code:"edit",
      headerName: "",
      field: "edit",
      maxWidth: 30,
      width: 30,
      pinned: "left",
      cellClass: "el-icon-edit",
      headerClass: "tms-no-children-header",
    },
    {
      name: "home1.menu_list_code",
      filter: "agTextColumnFilter",
      floatingFilter: true,
      width: 100,
      code: "menu_list_code",
    },
    {
      name: "home1.menu_list_name",
      filter: "agTextColumnFilter",
      floatingFilter: true,
      width: 100,
      code: "menu_list_name",
    },
    {
      name: "home1.menu_code",
      filter: "agTextColumnFilter",
      floatingFilter: true,
      width: 100,
      code: "menu_code",
    },
    {
      name: "home1.menu_id",
      filter: "agTextColumnFilter",
      floatingFilter: true,
      width: 100,
      code: "menu_id",
    },
    {
      name: "home1.remark",
      filter: "agTextColumnFilter",
      floatingFilter: true,
      width: 100,
      code: "remark",
    },
  ],
};

export default gridDefaultColumns;
